package com.example.designmode.factoryMethod;

import java.math.BigDecimal;

//乘法
public class MulOperation extends OperationAbstract {

    @Override
    public double calculate(double number1, double number2) {
        BigDecimal bigDecimal = new BigDecimal(number1);
        return bigDecimal.multiply(new BigDecimal(number2)).doubleValue();
    }
}
